﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OnlineManagement.Web
{
    public partial class ScriptManagerDemo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!Page.IsPostBack){
                lb1.Text = System.DateTime.Now.ToString();
                lb2.Text = DateTime.Now.ToString();
            }
            cb1.CheckedChanged += new EventHandler(cb1_CheckedChanged);
            aLink.ServerClick += new EventHandler(aLink_ServerClick);
            a2.ServerClick += new EventHandler(a2_ServerClick);
        }

        void a2_ServerClick(object sender, EventArgs e)
        {
            lb2.Text = DateTime.Now.ToString();
        }

        void aLink_ServerClick(object sender, EventArgs e)
        {
            lb1.Text = DateTime.Now.ToString();
        }

        void cb1_CheckedChanged(object sender, EventArgs e)
        {
            lb1.Text = System.DateTime.Now.ToString();
        }
    }
}